import React,{Component} from 'react';

const wrapComponent=(Inner)=>{
    return class HotCom extends Component{
        linkRef=(node)=>{
            this._root = this.node;
        }
        render(){
            let props= {...this.props};
            props.ref =this.linkRef;
            return <Inner {...props} />
        }
    }
}
class Testcom extends Component{
    render(){
        return (
            <div>222</div>
        )
    }
}
const Taocan = wrapComponent(Testcom)
class High extends Component{
    render(){
        return (
               < Taocan />
        )
    }
}
export default High;